package com.echo.blog.business.elasticsearch.service;

import com.echo.blog.business.elasticsearch.model.EsBlog;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * es博客服务层
 */
public interface EsBlogService {

    /**
     * @Author chentailai
     * @Description 获取ES服务中的博客信息简介
     * @Param [pageNumber, pageSize, searchContent]
     * @Return java.util.List<com.echo.blog.business.elasticsearch.model.EsBlog>
     * @Date 2020/5/19 16:45
     */
    List<EsBlog> searchEsBlogList(Integer pageNumber, Integer pageSize, String searchContent);


    /**
     * @Author chentailai
     * @Description 获取博客简介推荐
     * @Param [suggestField, suggestValue, suggestMaxCount]
     * @Return String
     * @Date 2020/5/19 20:29
     */
    List<String> getSuggestList(String suggestField, String suggestValue, Integer suggestMaxCount);
}
